View Javadoc
1 /* 2 * Created on 2004.09.09. 3 * 4 * In p2p project 5 */ 6 7 8 package net.sf.bigyo.container.test; 9 10 import java.io.File; 11 import java.io.FileNotFoundException; 12 13 import net.sf.bigyo.api.ContainerException; 14 import net.sf.bigyo.container.Main; 15 import net.sf.bigyo.container.profile.AllProfile; 16 17 import org.apache.log4j.PropertyConfigurator; 18 19 /*** 20 * @author zsombor 21 * 22 * Created at 2:00:06 net.sf.bigyo.container.ConvertComponentXml 23 * 24 */ 25 public class ConvertComponentXml { 26 27 public static void main(String[] args) throws FileNotFoundException, ContainerException { 28 PropertyConfigurator.configure("src/conf/log4j.properties"); 29 Main container = new Main("target/registry.xml"); 30 31 container.setProfileChecker(new AllProfile()); 32 container.getRepository().setPanicIfDuplicateFound(false); 33 container.getCompactReflectionConverter().setAccept(false); 34 container.loadConfigurations(new File("src/components")); 35 container.getCompactReflectionConverter().setAccept(true); 36 container.createXStream(); 37 container.getRepository().saveConfigurations(new File("target/components")); 38 39 } 40 }

This page was automatically generated by Maven